<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class AddColumnToOpenShopOrganizationManage extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('open_shop_organization_manage', function (Blueprint $table) {
            $table->unsignedBigInteger('designerUid')->default(0)->comment('设计师Uid')->after('preparationName');
            $table->string('designerName')->default('')->comment('设计师姓名')->after('designerUid');
            $table->unsignedBigInteger('operationUid')->default(0)->comment('营运负责人uid')->after('designerName');
            $table->string('operationName')->default('')->comment('营运负责人姓名')->after('operationUid');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('open_shop_organization_manage', function (Blueprint $table) {
            $table->dropColumn('designerName');
            $table->dropColumn('designerUid');
            $table->dropColumn('operationName');
            $table->dropColumn('operationUid');
        });
    }
}
